package com.github.ecbp.store.service.param;

import com.github.ecbp.common.validator.FlagValidator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * @Author Created by 何德宝 on 2020/4/2 22:16
 * @Version V1.0
 * @Description: 品牌传递参数
 */
@ApiModel(value = "BrandParam", description = "品牌传递参数")
@Data
public class BrandParam implements Serializable {
    private static final long serialVersionUID = -1857663360859993039L;

    @ApiModelProperty(value = "品牌名称", required = true)
    @NotEmpty(message = "名称不能为空！")
    private String name;

    @ApiModelProperty(value = "品牌首字母")
    private String firstLetter;

    @ApiModelProperty(value = "品牌logo",required = true)
    @NotEmpty(message = "品牌logo不能为空！")
    private String logo;

    @ApiModelProperty(value = "品牌专区大图")
    private String bigPic;

    @ApiModelProperty(value = "是否为厂家制造商")
    @FlagValidator(value = {"0","1"}, message = "厂家状态不正确！")
    private Integer factoryStatus;

    @ApiModelProperty(value = "品牌故事")
    private String brandStory;

    @ApiModelProperty(value = "排序字段")
    @Min(value = 0, message = "排序最小为0")
    private Integer sort;

    @ApiModelProperty(value = "是否进行显示")
    @FlagValidator(value = {"0","1"}, message = "显示状态不正确！")
    private Integer showStatus;

}
